print("加载global.lua！")

MOD_NET_STAT = 0
UART_ID = 1
UART_BAUD = 115200

STAT_GSM_FAIL = 0
STAT_GSM_OK = 1
STAT_ALI_AUTH_OK = 2
STAT_ALI_CONN_OK = 3

MOD_IMEI = ""

BIG_FILE_COUNT = 0
BIG_FILE_BUFFER_SIZE = 255 --大文件每次向串口发送的包大小
BIG_FILE_ANS_TIMEOUT = 5000 --如果MCU多长时间（毫秒）不应答，这次发送大文件失败
BIG_FILE_ANS_CHECK_TIME = 50 --没个多久（毫秒）检查一次串口是否应答了

--命令格式是 CMD_HEAD + CMD_VER + CMD_TYPE + CMD_PAYLOAD + CMD_ADD8
--特殊命令1（RRPC命令) CMD_HEAD + CMD_VER + CMD_TYPE + MSG_ID + CMD_PAYLOAD + CMD_ADD8
CMD_HEAD_LEN = 2
CMD_VER_LEN = 1
CMD_CMD_TYPE_LEN = 1
CMD_MSG_ID_LEN = 19
CMD_PAYLOAD_SIZE_LEN = 2
CMD_ADD8_LEN = 1

CMD_HEAD1 = 0x55
CMD_HEAD2 = 0xAA
CMD_VERSION = 0x00

--下面的offset都是在去掉55AA头以后的
CMD_VER_OFFSET = 1
CMD_CMD_TYPE_OFFSET = 2
CMD_PAYLOAD_SIZE_OFFSET = 3

TEST_MSG_ID = ""
-- osiyun Aliyun server --
-- PRODUCT_KEY = "a1TxJXVVtFj"
-- PRODUCE_SECRET = "N3xZ25oEMVp7py8j"
-- LiuFeng Aliyun server --
PRODUCT_KEY = "a1myMxabu7T"
PRODUCE_SECRET = "p7qDFHHmpqON6UET"

SYS_BUSY = 0
